﻿using AutoMapper;
using Model.Dto.Menu;
using Model.Dto.Role;
using Model.Dto.User;
using Model.Entitys;

namespace webapi.Config
{
    public class AutoMapperConfigs:Profile
    {
        public AutoMapperConfigs() {
            CreateMap<RoleAdd,Role>();
            CreateMap<RoleEdit, Role>();

            CreateMap<UserAdd, Users>();
            CreateMap<UserEdit, Users>();

            CreateMap<MenuAdd,Menu>();
            CreateMap<MenuEdit, Menu>();
        }
    }
}
